home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 August / Disc 1 / PCU0802CD1.iso / software / apps / files / dwmx.exe / Disk1 / data1.cab / Configuration_En / Commands / Manage Extensions.js < prev    next >
Encoding:
JavaScript  |  2002-05-22  |  831 b   |  39 lines

  1. // Copyright 2002 Macromedia, Inc. All rights reserved.
  2. //
  3. // Command: Manage Exchange Packages
  4. //
  5. // **************** Commands API *****************
  6.     
  7. function canAcceptCommand()
  8. {
  9.     // First validate that DWEMLaunch.DLL has been loaded
  10.  
  11.     if ( typeof( DWEMLaunch ) == "undefined" )
  12.         return( false );
  13.         
  14.     if (typeof(DWEMLaunch.mayLaunchExtensionManager) == "undefined")
  15.         return ( false );
  16.  
  17.     return DWEMLaunch.mayLaunchExtensionManager();
  18. }
  19.  
  20. function manageExtensions()
  21. {
  22.     var product;
  23.     
  24.     product = dw.appName;
  25.     product += " ";
  26.  
  27.     var vers = dw.appVersion;
  28.  
  29.     // The appVersion has the form "versionNumber [languageCode] (platform)"
  30.     // For example: "3.0 [se] (Win32)"
  31.     // We only want the "3"
  32.  
  33.     product += vers[0];
  34.  
  35.     var rc = DWEMLaunch.launchExtensionManager(product);
  36.  
  37.     return;         
  38. }
  39.